//
// Created by v on 19-6-25.
//

#include "CMDatabaseProxy.h"

#include "utils/cm_logprint.h"

CMLogPrint logPrint;

int main(int argc, char **args)
{
    CM_LOG_PRINT_INIT("database");

    char *dbfile = args[1];
    cminfo("database file is [%s]\n", dbfile);

    CMDatabaseResult result;
    CMDatabaseProxy *db = new CMDatabaseProxy("sqlite", dbfile);
    db->queryResult(
        "select downloadStatus,playListType from storage where uid=6207848",
        result);

    db->debugPrintResult(result);

    delete db;
    getchar();

    return 0;
}
